package com.gaogzhen.intro;

import java.util.Date;
import java.util.concurrent.Callable;

public class MyCallable implements Callable<String> {
    @Override
    public String call() throws Exception {
        Date start = new Date();
        Thread.sleep(1000);
        Date end = new Date();
        return Thread.currentThread().getName()+"执行用时："+(end.getTime() - start.getTime()) + "毫秒";
    }
}
